package com.jvm.coline.part2;

/**
 * @author Coline
 * 大都对象测试，需配合启动参数：-Xmx20m -Xms20m -Xmn10m -XX:+PrintGCDetails
 */
public class BigObjectDemo {
    private static final int BYTE_1MB = 1024*1024;

    public static void main (String[] arg0){
        byte[] b1,b2,b3;
        b1 = new byte[2*BYTE_1MB];
        b2 = new byte[2*BYTE_1MB];
        b3 = new byte[5*BYTE_1MB];

    }
}
